package club.sanmubird.travel_culture_wx_demo.demo.mysql.entity;

import io.github.biezhi.anima.Model;
import io.github.biezhi.anima.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @program: springboot_simpledb
 * @description: user entity
 * @author: sam
 * @create: 2018-07-18 01:30
 * @update: 2018-07-18 01:30
 * @update: Sam
 **/

@Table(name = "user")
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class User extends Model {

	private Integer id;

	private String userName;

	private String passWord;

	private String userSex;

	private String nickName;

	public User(String userName, String passWord, String userSex, String nickName) {
		this.userName = userName;
		this.passWord = passWord;
		this.userSex = userSex;
		this.nickName = nickName;
	}
}
